package com.lhd.mapper;

import com.github.pagehelper.Page;
import com.lhd.pojo.Record;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RecordMapper {
    void add(Record record);

    List<Record> getByUid(@Param("uid") Integer id);

    List<Record> getAll();

    Page<Record> getByCondition(@Param("uname") String uname,@Param("gname") String gname,@Param("sname") String sname);

    void updateState(@Param("state") Integer state,@Param("id") Integer id);
}
